import { axios } from '@/utils/request'

/**
 * 查询作业标签
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagPage(parameter) {
  return axios({
    url: '/homeworkTag/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 作业标签列表
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagList(parameter) {
  return axios({
    url: '/homeworkTag/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加作业标签
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagAdd(parameter) {
  return axios({
    url: '/homeworkTag/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑作业标签
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagEdit(parameter) {
  return axios({
    url: '/homeworkTag/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除作业标签
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagDelete(parameter) {
  return axios({
    url: '/homeworkTag/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出作业标签
 *
 * @author kongxm
 * @date 2022-07-16 17:03:28
 */
export function homeworkTagExport(parameter) {
  return axios({
    url: '/homeworkTag/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}

/**
 * 修改状态
 *
 * @author kongxm
 * @date 2020/6/23 21:36
 */
export function homeworkTagChangeStatus(parameter) {
  return axios({
    url: '/homeworkTag/changeStatus',
    method: 'post',
    data: parameter
  })
}